<{include file="public/header.html"}>
<div class="xinsu-right">
	<div class="xinsu-right-content">
		<div class="xinsu-data-content">
			<div class="xinsu-title">
				<span class="layui-breadcrumb">
					<a href="/">当前位置</a>
					<a href="/<{$common_info.module}>/config/"><cite>股票板块管理</cite></a>
				</span>
			</div>
			<div class="xinsu-add">
				<a href="/<{$common_info.module}>/config/add"><i class="layui-icon">&#xe61f;</i>新增板块</a>
			</div>
			<form class="layui-form xinsu-form" action="/<{$common_info.module}>/config/" method="get">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label xinsu-form-label">分类</label>
						<div class="layui-input-inline xinsu-input-inline">
							<select name="class">
								<option value="0">全部</option>
								<{foreach $class_list as $val}>
								<option value="<{$val}>" <{if $class == $val}>selected<{/if}>><{$val}></option>
								<{/foreach}>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label xinsu-form-label">版块名称</label>
						<div class="layui-input-inline xinsu-input-inline">
							<input type="text" name="bk_name" class="layui-input" value="<{if $bk_name != '0'}><{urldecode($bk_name)}><{/if}>" />
						</div>
					</div>

					<button class="layui-btn xinsu-btn">查询</button>
					<span>记录总数：共 <{$total}> 条</span>
				</div>
			</form>
			<div class="layui-form xinsu-form">
				<table class="layui-table">
					<thead>
						<tr>
							<th>ID</th>
							<th>分类</th>
							<th>板块名称</th>
							<th>操作</th>
						</tr> 
					</thead>
					<tbody>
						<{if empty($list) == false}>
						<{foreach $list as $val}>
						<tr>
							<td><{$val.id}></td>
							<td><{$val.class}></td>
							<td><{$val.bk_name}></td>
							<td>
								<a class="xinsu-fontcolor-blue xinsu-amend xinsu-edit" href="javascript:;" data="<{$val.id}>">修改</a>
								<a class="xinsu-fontcolor-blue xinsu-delete" data-uri="/config/del/<{$val.id}>">删除</a>
							</td>
							
						</tr>
						<{/foreach}>
						<{else}>
						<tr>
							<td colspan="6">暂无数据</td>
						</tr>
						<{/if}>
					</tbody>
				</table>
			</div>
			<div class="xinsu-page">
				<div class="xinsu-show">
					<{$page}>
				</div>
				<div class="xinsu-clear"></div>
			</div>
		</div>
	</div>
</div>
<{include file="public/footer.html"}>